import eventBus from "@/Util/EventBus";
import SocketIo from "./Socket";
class UserChatSocket extends SocketIo {
    friendList: string[] = []; // 好友列表
    constructor() {
        super()
        eventBus.on('setFriendList', this.setFriendList)
    }

    setFriendList = (friendList: string[]) => {
        this.friendList = friendList
    }
}

let socket = new UserChatSocket()
export default socket